package leetcode.code0342;

public class Solution {
	public boolean isPowerOfFour(int n) {
		while (n >= 4 && n % 4 == 0) {
			n /= 4;
		}
		return n == 1;
	}
}
